package com.woniuxy.creditsystem.systemmag.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.woniuxy.creditsystem.annos.MyLog;
import com.woniuxy.creditsystem.common.bean.DataSourceInfo;
import com.woniuxy.creditsystem.common.bean.ResultMsg;
import com.woniuxy.creditsystem.common.bean.RoleInfo;
import com.woniuxy.creditsystem.common.mapper.DataSourceMapper;
import com.woniuxy.creditsystem.common.mapper.RoleMapper;
import com.woniuxy.creditsystem.statisticsmag.service.IDataDetailService;
import com.woniuxy.creditsystem.systemmag.service.IDataSourceService;
import com.woniuxy.creditsystem.systemmag.service.IDownloadService;
import com.woniuxy.creditsystem.systemmag.service.IRoleService;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.CreationHelper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * 数据源的查询
 * @author hejie
 */
@Service
@Transactional(readOnly = true)
public class DataSourceServiceImpl implements IDataSourceService {

    @Resource
    private DataSourceMapper dataSourceMapper;

    /**
     * 查询所有的数据源
     * @author hejie
     * @return
     */
    @Override
    public List<DataSourceInfo> findAll() {
        return dataSourceMapper.findAll();
    }
}
